<?php if ($gtAccount != NULL){ ?>

<h5><b>Project <?php echo $projId;?></b></h5>
<!-- select from all current employees in this project as name(id)-->
<h1><b>Select Member to Delete:</b> </h1><br />
<?php echo $this->Form->create(null, array('action' => 'removeFromProject'));?>
<input type="hidden" name="projId" value="<?php echo $projId;?>"/>
<select name ="deleteId">

<?php foreach($projectMembers as $pm): ?>
	<option value="<?php echo $pm['employee_id']?>">
	<?php echo $pm['name'];
	echo " (";
	echo $pm['employee_id'];
	echo ")";
	?>
	</option>
<?php endforeach; ?>

</select>

<?php echo $this->Form->end("Delete");?>
<br/>
<!-- select from all current employees as name(id)-->
<h1><b>Select Employee to Add:</b> </h1><br />
<?php echo $this->Form->create(null, array('action' => 'addEmployeeToProject'));?>
<select name ="employeeId">
<?php foreach($emps as $emp): ?>
	<option value="<?php echo $emp['Employee']['employee_id']?>">
	<?php echo $emp['Employee']['name'];
	echo " (";
	echo $emp['Employee']['employee_id'];
	echo ")";
	?>
	</option>
<?php endforeach; ?>
</select>
<input type="hidden" name="projId" value="<?php echo $projId;?>"/>
<?php echo $this->Form->end("Add");?>

<?php } else{ ?>
<h1> Invalid Login </h1>
<?php }?>

